<?php

namespace common\models;


use yii\db\ActiveRecord;

class Complaint extends ActiveRecord
{
    public static function tableName()
    {
        return 'complaint';
    }

    public function rules()
    {
        return [
            [['id','order_id','shop_id','user_id','status','create_time','update_time','complete_time'],'integer'],
            [['reason','result','sale_type','goods_type','reason','problem_description','user_name','dismissal','user_phone'],'string'],
        ];
    }


    public function attributeLabels()
    {
        return [
            'id'=>'id',
            'order_id'=>'订单id',
            'shop_id'=>'shop_id',
            'user_id'=>'user_id',
            'sale_type'=>'售后类型',
            'goods_type'=>'获取状态',
            'reason'=>'申请原因',
            'problem_description'=>'问题描述',
            'user_phone'=>'联系电话',
            'user_name'=>'用户姓名',
            'status'=>'状态',
            'result'=>'处理结果',
            'dismissal'=>'审核结果',
            'admin_id'=>'管理员id',
            'admin_name'=>'管理员姓名',
            'create_time'=>'创建时间',
            'update_time'=>'更新时间',
            'complete_time'=>'完成时间',

        ];
    }

}